<!DOCTYPE html>
<html lang="en">
<head>
 <meta charset="UTF-8">
 <meta name="viewport"
  content="width=device-width, initial-scale=1.0, minimum-scale=1,maximum-scale=1,user-scalable=no">
 <meta http-equiv="X-UA-Compatible" content="ie=edge">
 <title data-ch="恐龙探险" data-en="Dinosaur Adventure" class="document_title">恐龙探险</title>
 <script src="js/jquery-3.3.1.min.js"></script>
 <script src="js/common.js"></script>
 <script src="js/rem.js"></script>
 <script src="js/layer.js"></script>
 <script type="text/javascript">
  isLogin();
 </script>
 <link rel="stylesheet" href="css/common.css">
 <link rel="stylesheet" href="css/index.css">
</head>
<body>
 <!--头部-->
 <div class=" jui_top_bar">
  <a class="jui_top_left" href="javascript:history.back(-1)"><img src="icons/back.png"></a>
  <div class="jui_top_middle font_weight" data-ch="团队收益" data-en="Referral income">团队收益</div>
 </div>
 <!-- 头部end -->
 <!-- 主体部分开始 -->
 <div class="shouyi_tuandui_main jui_main">
  <div class="shouyi_tuandui_top border_radius03 latout_mask">
   <img src="icons/my_icon05.png" alt="">
   <div class="shouyi_tuandui_top_num col_fff f32">0.00</div>
   <div class="shouyi_tuandui_top_two flex_ar">
    <a href="shouyi_tuan_zhuan.html" class="col_fff shouyi_tuandui_top_two_div f34 border_radius05" data-ch="转换鸡肉"
     data-en="Convert meat">转换鸡肉</a>
    <a href="taoxian.html" class="col_fff shouyi_tuandui_top_two_div f34 border_radius05" data-ch="套现"
     data-en="Cash out">套现</a>
   </div>
  </div>
  <!-- 收益部分 -->
  <div class="shouyi_tuandui_list_box">
   <!-- 列表部分 -->
   
   <!-- 内容为空时显示 -->
   
  </div>
 </div>

 <script>
  let data = {
   uid: localStorage.getItem("u_id"),
   token: localStorage.getItem("token"),
   language_type: localStorage.getItem("language_type"),
   l_type: 3
  }
  $.ajax({
   type: 'post',
   url: baseURL + '/index.php?m=index&c=wallet_log',
   data: data,
   success: function success(data) {
    data = JSON.parse(data);
	is_login(data);
    if (data.code == 1) {
     $(".shouyi_tuandui_top_num").html(Number(data.user.m_credit_3).toFixed(2))
     let teamList = '';
     if(data.data.length == 0){
     teamList = `<div class="if_null">
      <img class="if_null_img" src="./icons/nothing.png" alt="">
      <div class="if_null_text col_000 f30" data-ch="暂无内容" data-en="No data">暂无内容</div>
     </div>`
     } else {
     data.data.forEach(function(item){
      teamList += `<div class="shouyi_list border_radius02 latout_mask">
        <div class="shouyi_list_top flex_be">
         <div class="f32 font_weight ${item.l_status == 1 ? 'col_green' : 'color_red'}">
          ${item.l_status == 1 ? '+' : ''}${item.l_num}
         </div>
         <div class="col_fff f28">${item.l_d_date} ${item.l_d_time}</div>
        </div>
        <div class="shouyi_list_bottom col_fff f30">
         ${item.l_info}
        </div>
       </div>`
      })
     }
     $(".shouyi_tuandui_list_box").html(teamList)
     language()
    } else {
     box_timer(data.msg);
    }
   }
  })
  language();
  documentName()
 </script>
</body>
</html>